* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #000099;
  color: black;
  padding: 20px;
}

/* Header */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  color:white;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Card General Styling */
.card {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
}

.card h2 {
  font-size: 1.1rem;
}

/* Timer Styling */
#timer-display {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  margin: 15px 0;
  color: #4318ff;
}

.timer-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.timer-controls button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background-color: #e9ecef;
  font-weight: 600;
}

.timer-controls #start-btn {
  background-color: #05cd99;
  color: white;
}

/* Syllabus Header & Layout */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.btn-primary {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn-secondary {
  background-color: #64748b;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-success {
  background-color: #10b981;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
}

/* Subject Item Block */
.subject-item-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

.subject-info {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 8px;
}

.subject-progress-bg {
  background-color: #cbd5e1;
  height: 14px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.subject-progress-fill {
  background: linear-gradient(90deg, #3b82f6, #10b981);
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.subject-chapters-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.subject-chapter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 4px;
}

/* Daily Tasks Section Styling */
.task-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.task-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.task-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  word-break: break-word;
}

.task-checkbox-label input[type="checkbox"] {
  accent-color: #10b981;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.task-checkbox-label.completed span {
  text-decoration: line-through;
  color: #a0aec0;
}

.btn-delete-task {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 12px;
}

/* Notes */
textarea {
  width: 100%;
  height: 150px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: none;
}

/* Modal Popup Styling */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 420px;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.modal-body label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 4px;
}

.modal-body input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 10px;
}

.chapter-input-row {
  display: flex;
  gap: 6px;
}

.temp-chapter-list {
  max-height: 120px;
  overflow-y: auto;
  padding-left: 20px;
  margin-bottom: 15px;
  font-size: 14px;
}

/* --- Yellow Lighting Hover & Glow Effect --- */
.card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  border: 1px solid #facc15; /* Bright Yellow Border */
  box-shadow: 0 10px 25px -5px rgba(234, 179, 8, 0.4), 
              0 0 15px 2px rgba(250, 204, 21, 0.3); /* Yellow Glow */
}